import React, { Component } from 'react'
import useData from '@/usehooks/useData'
import LoadingCom from './loading'

export default () => {

  const [data, loading] = useData({ method: 'get', url: '/data.json' })
  console.log('data:', data)

  return (
    <div>
      ticket
      {
        loading && <LoadingCom />
      }
    </div>
  )

}
